<template>
  孙子组件：{{ student.age }}<br>
</template>

<script>
import { inject } from '@vue/runtime-core'
export default {
    setup () {
        const student = inject('info')
        return {
            student
        }
    }
}
</script>

<style>

</style>